package com.group7.mall.entity;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * (TbMessage)实体类
 *
 * @author makejava
 * @since 2024-04-09 15:29:18
 */
@ToString
@Data
public class TbMessage implements Serializable {
    private static final long serialVersionUID = -35498960355920953L;
/**
     * 信息id
     */
    private Integer messageId;
/**
     * 发送方id
     */
    private String fromUserId;
/**
     * 接收方id
     */
    private String toUserId;
/**
     * 消息体
     */
    private String message;
/**
     * 时间戳
     */
    private String timeStamp;
/**
     * 消息类型
     */
    private Integer messageType;
/**
     * 是否已读
     */
    private Integer isRead;


    public Integer getMessageId() {
        return messageId;
    }

    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }

    public String getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(String fromUserId) {
        this.fromUserId = fromUserId;
    }

    public String getToUserId() {
        return toUserId;
    }

    public void setToUserId(String toUserId) {
        this.toUserId = toUserId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(String timeStamp) {
        this.timeStamp = timeStamp;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public Integer getIsRead() {
        return isRead;
    }

    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }

}

